<template>
  <div class="mainCon">
    <span class="icon iconfont iconchulizhong"></span>
    <h3>提交的{{ `${year}年${month}月第${batchNo}批次` }}工资表正在审核中…</h3>
    <ul>
      <li>
        1. 工资表需<span class="fontColor">{{ checkOperator }}</span
        >审核通过后方可进行实际代发，请耐心等待；
      </li>
      <li>2. 审核通过后，项目将变为【待发放】状态；</li>
      <li>3. 审核不通过，请根据驳回原因，重新编辑工资表；</li>
    </ul>
    <el-button class="commonBut" @click="toSalaryDetail">返回工资表</el-button>
  </div>
</template>
<script>
export default {
  name: 'constructorSalaryResult',
  data() {
    return {
      salaryId: '',
      year: '',
      month: '',
      batchNo: '',
      checkOperator: '',
      reportStatus: '',
      projectId: '',
    }
  },
  created() {
    this.salaryId = this.$route.query.salaryId
    this.year = this.$route.query.yearQuery
    this.month = this.$route.query.monthQuery
    this.batchNo = this.$route.query.batchNo
    this.checkOperator = this.$route.query.checkOperator
    this.reportStatus = this.$route.query.reportStatus
    this.projectId = this.$route.query.projectId
  },
  methods: {
    //返回工资表详情页
    toSalaryDetail() {
      this.$router.push({
        path: '/home/salaryDf/salaryPayBatchDetailList',
        name: 'salaryPayBatchDetailList',
        query: {
          salaryId: this.salaryId,
          yearQuery: this.year,
          monthQuery: this.month,
          batchNo: this.batchNo,
          statusQuery: this.reportStatus,
          projectId: this.projectId,
        },
      })
      this.$store.commit('CHANGE_SLIDER_NAME', {
        oldUrl: '/home/salaryDf/companySalaryBatchList',
        newUrl: this.$router.currentRoute.fullPath,
      })
    },
  },
}
</script>
<style lang="less" scoped>
.mainCon {
  top: 128px;
  text-align: center;
  padding-top: 100px;
  .iconchulizhong {
    font-size: 124px;
    color: #67ace4;
  }
  h3 {
    margin-top: 40px;
    line-height: 24px;
    font-size: 24px;
    color: #333;
    margin-bottom: 32px;
  }
  ul {
    width: 670px;
    margin: 20px auto 40px;
    text-align: left;

    padding: 15px 36px;
    color: #666;
    background: #f5f7fb;
    li {
      width: auto;
      line-height: 20px;
      font-size: 14px;
      .fontColor {
        color: #e02020;
      }
    }
  }
}
</style>
